﻿@using NetNames
@using MiniSched.Web.Models.Account
@model RegisterModel

@{
    var memberName = MemberName<RegisterModel>.Instance;
}

<h2>Register</h2>
<form action="@Url.Action("Register")" method="post">
    <label>Username:</label>
    <input type="text" name="@memberName.Get(m => m.UserName)" value="@Model.UserName" />
    <label>Password:</label>
    <input type="password" name="@memberName.Get(m => m.Password)" />
    <input type="submit" value="Submit" />
    @Html.AntiForgeryToken()
</form>
